using UnityEngine;
using System.Collections;

public class ButtonWebpage : MonoBehaviour {

    public string urlToOpen;
    void OnMouseDown()
    {
        Application.OpenURL(urlToOpen);
    }

    void Update()
    {
        Touch[] touches = Input.touches;
        foreach (Touch t in touches)
        {
            if (guiTexture.HitTest(t.position))
            {
                Application.OpenURL(urlToOpen);
            }
        }
    }
}
